/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package amount;

import score.Score;

/**
 *
 * @author Daniel Gribel
 */
public class DigitAmount extends Amount {
    public DigitAmount(Score score, String name) {
        super(score, name);
    }
    
    @Override
    public void checkClauses(char character) {
        if(Character.isDigit(character))
            setCounter(getCounter() + 1);
    }    
}
